package me.shiqiang.im.microservice;

import me.shiqiang.im.microservice.impl.AppNotificationMicroServiceHyStrix;
import me.shiqiang.im.microservice.returnobj.NotifyFinReturnObj;
import me.shiqiang.im.vo.AppNotificationVo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * app通知服务feign client
 * Created by John on 17/12/18.
 */
@FeignClient(name = "service-mobile-push", fallback = AppNotificationMicroServiceHyStrix.class)
public interface AppNotificationMicroService {

    @RequestMapping(method = RequestMethod.POST, value = "/mobile-push/")
    NotifyFinReturnObj appNotification(@RequestBody AppNotificationVo appNotificationVo);


}
